﻿using K9Nano.Authorization;
using K9Nano.GlobalOptions;

namespace K9Nano.Domain.Authorization;

public static partial class FrontendRoutes
{    
    public static void CreatePermissions(IPermissionCatalog permissionCatalog)
    {
        foreach (var item in Routes)
        {
            if (string.IsNullOrEmpty(item.Value)) continue;

            permissionCatalog.Add(PermissionGroups.Admin, item.Key, item.Value);
        }
    }
}